from rest_framework.routers import DefaultRouter
from django.urls import re_path
from system.host.views.host import HostModelViewSet
from system.host.views.group import GroupModelViewSet
from system.host.views.host import FileUploadView

router = DefaultRouter()
router.register(r'node', HostModelViewSet)
router.register(r'group', GroupModelViewSet)

urlpatterns = [
    re_path('import_host', FileUploadView.as_view()),
]
urlpatterns += router.urls
